php forum
php mysql forum
php mysql smarty
 
Topic Options
#312531 - 01/06/07 06:20 AM [7.x] [Finished] Quick Update for FULL SSL support
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I have a friend who can only access my site via SSL (hardcore security policies at his cushy govt job), and everywhere that uses the "full_url" breaks his browsing via SSL and pops him to the normal page (making a post, creating a topic, replying, pms, logging in, etc)...

So I got the bright idea tonight to hack in full SSL support via tweaking with the full url string in the array in the config.inc.php...

It's fairly easy to do, but only tested on PHP5 (though it should work on PHP4).

In includes/config.inc.php:
Find:
Code:
//	Note: If you modify ANY code within your UBB, we at Groupee, Inc
//  cannot offer you support -- thus modify at your own peril :)


Add After:
Code:
$ssl = $_SERVER["HTTPS"];
$url = $_SERVER["HTTP_HOST"];
if($ssl == "on") { $https = "https"; }
else { $https = "http"; }


Then Find:
Code:
#  'FULL_URL' => 'http://www.yourdomain.tld/path',


Replace With:
Code:
  'FULL_URL' => $https . '://' . $url . '/yourpath',


It'll take and change "http" with "https" if ssl is being used, else it'll take and use "http". Also I set $url to identify if a user is accessing my forum from another domain name (as I have several).

It should work on any Apache based UBB.Threads install with PHP4/5 though...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312537 - 01/06/07 06:53 PM Re: Quick Update for FULL SSL support... [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Nice mod gizzy, never thought of this smile
_________________________
- Allen wavey
- What Drives You?

Top
#312544 - 01/06/07 08:06 PM Re: Quick Update for FULL SSL support... [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Yeh, it works lovely lol.. Granted my reasoning is to bypass web filters lol...

He posted toay from work without issue, so thats good; he's been so swamped at work that he hasn't been able to visit (cas they have out site blocked for some reason; yet he can get to 2600.net just fine)...

It's amazing how painless it was though lol... i haven't checked if updating the paths page on the forum clears this mod though, should be something to check out lol...

I don't see why it wouldn't work on php4 though, i checked some old code i used to do something similar and it is near identicle, so it should work fine. And I don't really see why it wouldn't work on IIS either.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks